Optimal. Leaf size=35 \[ \frac{d \log (\sin (2 a+2 b x))}{b^2}-\frac{2 (c+d x) \cot (2 a+2 b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0594156, antiderivative size = 35, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.136, Rules used = {4419, 4184, 3475} \[ \frac{d \log (\sin (2 a+2 b x))}{b^2}-\frac{2 (c+d x) \cot (2 a+2 b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4419
Rule 4184
Rule 3475
Rubi steps
\begin{align*} \int (c+d x) \csc ^2(a+b x) \sec ^2(a+b x) \, dx &=4 \int (c+d x) \csc ^2(2 a+2 b x) \, dx\\ &=-\frac{2 (c+d x) \cot (2 a+2 b x)}{b}+\frac{(2 d) \int \cot (2 a+2 b x) \, dx}{b}\\ &=-\frac{2 (c+d x) \cot (2 a+2 b x)}{b}+\frac{d \log (\sin (2 a+2 b x))}{b^2}\\ \end{align*}
Mathematica [A] time = 0.203898, size = 32, normalized size = 0.91 \[ \frac{d \log (\sin (2 (a+b x)))-2 b (c+d x) \cot (2 (a+b x))}{b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.074, size = 182, normalized size = 5.2 \begin{align*}{ \left ({\frac{c}{2\,b}}-3\,{\frac{c \left ( \tan \left ( 1/2\,bx+a/2 \right ) \right ) ^{2}}{b}}+{\frac{c}{2\,b} \left ( \tan \left ({\frac{bx}{2}}+{\frac{a}{2}} \right ) \right ) ^{4}}+{\frac{dx}{2\,b}}-3\,{\frac{dx \left ( \tan \left ( 1/2\,bx+a/2 \right ) \right ) ^{2}}{b}}+{\frac{dx}{2\,b} \left ( \tan \left ({\frac{bx}{2}}+{\frac{a}{2}} \right ) \right ) ^{4}} \right ) \left ( \tan \left ({\frac{bx}{2}}+{\frac{a}{2}} \right ) \right ) ^{-1} \left ( \left ( \tan \left ({\frac{bx}{2}}+{\frac{a}{2}} \right ) \right ) ^{2}-1 \right ) ^{-1}}+{\frac{d}{{b}^{2}}\ln \left ( \tan \left ({\frac{bx}{2}}+{\frac{a}{2}} \right ) \right ) }+{\frac{d}{{b}^{2}}\ln \left ( \tan \left ({\frac{bx}{2}}+{\frac{a}{2}} \right ) -1 \right ) }+{\frac{d}{{b}^{2}}\ln \left ( \tan \left ({\frac{bx}{2}}+{\frac{a}{2}} \right ) +1 \right ) }-2\,{\frac{d\ln \left ( 1+ \left ( \tan \left ( 1/2\,bx+a/2 \right ) \right ) ^{2} \right ) }{{b}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.50139, size = 416, normalized size = 11.89 \begin{align*} -\frac{2 \, c{\left (\frac{1}{\tan \left (b x + a\right )} - \tan \left (b x + a\right )\right )} - \frac{2 \, a d{\left (\frac{1}{\tan \left (b x + a\right )} - \tan \left (b x + a\right )\right )}}{b} - \frac{{\left ({\left (\cos \left (4 \, b x + 4 \, a\right )^{2} + \sin \left (4 \, b x + 4 \, a\right )^{2} - 2 \, \cos \left (4 \, b x + 4 \, a\right ) + 1\right )} \log \left (\cos \left (2 \, b x + 2 \, a\right )^{2} + \sin \left (2 \, b x + 2 \, a\right )^{2} + 2 \, \cos \left (2 \, b x + 2 \, a\right ) + 1\right ) +{\left (\cos \left (4 \, b x + 4 \, a\right )^{2} + \sin \left (4 \, b x + 4 \, a\right )^{2} - 2 \, \cos \left (4 \, b x + 4 \, a\right ) + 1\right )} \log \left (\cos \left (b x + a\right )^{2} + \sin \left (b x + a\right )^{2} + 2 \, \cos \left (b x + a\right ) + 1\right ) +{\left (\cos \left (4 \, b x + 4 \, a\right )^{2} + \sin \left (4 \, b x + 4 \, a\right )^{2} - 2 \, \cos \left (4 \, b x + 4 \, a\right ) + 1\right )} \log \left (\cos \left (b x + a\right )^{2} + \sin \left (b x + a\right )^{2} - 2 \, \cos \left (b x + a\right ) + 1\right ) - 8 \,{\left (b x + a\right )} \sin \left (4 \, b x + 4 \, a\right )\right )} d}{{\left (\cos \left (4 \, b x + 4 \, a\right )^{2} + \sin \left (4 \, b x + 4 \, a\right )^{2} - 2 \, \cos \left (4 \, b x + 4 \, a\right ) + 1\right )} b}}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.49963, size = 197, normalized size = 5.63 \begin{align*} \frac{d \cos \left (b x + a\right ) \log \left (-\frac{1}{2} \, \cos \left (b x + a\right ) \sin \left (b x + a\right )\right ) \sin \left (b x + a\right ) + b d x - 2 \,{\left (b d x + b c\right )} \cos \left (b x + a\right )^{2} + b c}{b^{2} \cos \left (b x + a\right ) \sin \left (b x + a\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]